

public class ViewData {
	
	//type LinearLayout LinearLayout RelativeLayout
	private String type;
	//id 
	private String id;
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getId() {
	
		return id;
	}
	public void setId(String id) {
		String temp=id.substring(5);
		this.id = temp;
	}
	
	public String tofindString(){
		
		StringBuffer sb=new StringBuffer();
		sb.append("\t");
		sb.append("private ");
		sb.append(type);
		sb.append(" ");
		sb.append(id);
		sb.append(";");
		sb.append("\n");
		return sb.toString();
	}
	
	public String toBindString(){
		
		StringBuffer sb=new StringBuffer();
		// id=findview
		sb.append("\t\t");
		sb.append(id);
		sb.append("=");
		sb.append("(");
		sb.append(type);
		sb.append(")");
		sb.append(" ");
		sb.append("findViewById");
		sb.append("(");
		sb.append("R.id.");
		sb.append(id);
		sb.append(")");
		sb.append(";");
		sb.append("\n");
		return sb.toString();
	}
	

}
